import * as API from './index'

//加入购物车

export const addCart=(params)=>{
    return API.POST('/api/v1/shop_carts',params)
}

//获取用户购物车数据

export const productCart=()=>{
    return API.GET('/api/v1/shop_carts')
}

//删除购物车信息

export const deleteCart=(params)=>{
    return API.DELETE('/api/v1/shop_carts/'+params)
}
